// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
// import router from './router'
import iView from 'iview';
import 'iview/dist/styles/iview.css';
import axios from './config/axiosConfig';
import './filter/filter'
import './directive/directive'

import './assets/static/thirdparty/jquery-1.12.4-dist/plugins/jquery-ui-1.10.4.custom.css'
import './assets/static/thirdparty/bootstrap-3.3.7-dist/css/bootstrap.min.css'
import './assets/static/thirdparty/metismenu-2.7.0-dist/metisMenu.css'
import './assets/static/ext-dpap/styles/ext-dpap-min.css'
import './assets/static/resources/css/font-awesome.min.css'
import './assets/static/resources/css/ionicons.min.css'
import './assets/static/resources/css/uap/uap-layout.css'
import './assets/static/resources/css/customMenu.css'
import './assets/static/resources/css/uap/home.css'
import './assets/static/resources/css/multiquery.css'
import './assets/static/resources/css/uap/nav/nav-all-new.css'
import './assets/static/resources/css/uap/uap-dpap.css'

if (navigator.userAgent.indexOf("Chrome") > -1) {
  var chromeBrowser = navigator.userAgent.match(/Chrome\/([\d.]+)/);
  if (chromeBrowser[1] < "28.0.1478.0") {
    window.location.href = UAP_SERVER_NAME + "browser-warning.html";
  }
  window.browser = chromeBrowser[0];
} else if (navigator.userAgent.indexOf("Firefox")) {
  var FirefoxBrowser = navigator.userAgent.match(/Firefox\/([\d.]+)/);
  if (FirefoxBrowser[1] < "37.0") {
    window.location.href = UAP_SERVER_NAME + "browser-warning.html";
  }
  window.browser = FirefoxBrowser[0];
} else {
  window.location.href = UAP_SERVER_NAME + "browser-warning.html";
}
if (screen.width < 1280) {
  showMsg('warn', '请调整您电脑的分辨率，屏幕宽度不能低于1280!');
}

Vue.config.productionTip = false;
Vue.use(iView);
Vue.prototype.axios = axios;



/* eslint-disable no-new */
new Vue({
  el: '#app',
  // router,
  components: { App },
  template: '<App/>'
})
